package com.sinooceangroup.capital.nacosconfig.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * User Config
 * @author: Leo.Wang, adwyxx@qq.com
 * @date: 2020/7/22 10:08
 */
@ConfigurationProperties(prefix = "config.user")
@Component
public class UserConfig implements Serializable {
    private String name;
    private Integer age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
